package Demo3;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 34255
 * Date: 2024-05-20
 * Time: 21:44
 */
//class OutClass2 {
//    public int data1 = 1;
//    private int data2 = 2;
//    private static final int data3 = 3;
//
//    class InsideClass2{
//        public int data1 = 4;
//        public int data5 = 5;
//        public static int data6 = 6;
//
//        public void test2(){
////            OutClass2 class2 = new OutClass2();
//            System.out.println("test2()...");
//            System.out.println(OutClass2.this.data1);
//            System.out.println(data1);
//            System.out.println(data2);
//            System.out.println(data3);
////            System.out.println(this.data4);
//            System.out.println(data5);
//            System.out.println(data6);
////            class2.test1();
//        }
//    }
//    public static void test1(){
//        System.out.println("test1()...");
//    }
//}
public class Test1 {
    public static void main(String[] args) {
//        如何通过实力内部类类型创建实力内部类对象
//        OutClass2.InsideClass2 = new OutClass2.InsideClass2();
//        OutClass2 outClass = new OutClass2();
//        OutClass2.InsideClass2 insideClass = outClass.new InsideClass2();
//        insideClass.test2();
    }
}
